﻿<?xml version="1.0" encoding="utf-8" ?> 
<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database">

  <!-- ************************ CONFIGURACION DE NHIBERNATE PARA SPRING *********************************** -->
  <!-- *********************** PROPIEDADES BIOMETRIC MANAGER SYSTEM (BMS) ********************************* -->
  <object id="BMS.SessionFactory" type="BMS.DAO.CustomSessionFactory, BMS.DAO">
    <property name="MappingAssemblies">
      <list>
        <value>BMS.MODEL</value>
      </list>
    </property>
    <property name="HibernateProperties">
      <dictionary>
        <entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
        <entry key="dialect" value="NHibernate.Dialect.MsSql2008Dialect"/>
        <entry key="connection.connection_string" value="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=TWAccess;Data Source=LOCALHOST" />
        <entry key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/>
        <entry key="use_proxy_validator" value="false" />
        <entry key="current_session_context_class" value="thread_static"/>
        <entry key="show_sql" value="false"/>
      </dictionary>
    </property>
  </object>

  <object id="BMS.TransactionManager" type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate33">
    <property name="SessionFactory" ref="BMS.SessionFactory"/>
  </object>

</objects>